import request from '@/utils/request'

export function loadSetting() {
  return request({
    url: '/settings/loadSetting',
    method: 'get'
  })
}

export function saveSetting(data) {
  return request({
    url: '/settings/saveSetting',
    method: 'post',
    data
  })
}

export function searchUserList() {
  return request({
    url: '/settings/searchUserList',
    method: 'get'
  })
}

export function saveUser(data) {
  return request({
    url: '/settings/saveUser',
    method: 'post',
    data
  })
}
export function deleteUser(data) {
  return request({
    url: '/settings/deleteUser',
    method: 'post',
    data
  })
}

export function searchPlatformList() {
  return request({
    url: '/settings/searchPlatformList',
    method: 'get'
  })
}

export function savePlatform(data) {
  return request({
    url: '/settings/savePlatform',
    method: 'post',
    data
  })
}
export function deletePlatform(data) {
  return request({
    url: '/settings/deletePlatform',
    method: 'post',
    data
  })
}

export function searchAlertRuleList() {
  return request({
    url: '/settings/searchAlertRuleList',
    method: 'get'
  })
}

export function saveAlertRule(data) {
  return request({
    url: '/settings/saveAlertRule',
    method: 'post',
    data
  })
}
export function deleteAlertRule(data) {
  return request({
    url: '/settings/deleteAlertRule',
    method: 'post',
    data
  })
}

export function searchAlertLogList(data) {
  return request({
    url: '/settings/searchAlertLogList',
    method: 'post',
    data
  })
}
